package com.ruoyi.demo.service;

import com.fasterxml.jackson.core.JsonProcessingException;

import java.util.List;
import java.util.Map;

public interface JyDemoService {
    String getReplayStreamUrlOfTheMonitor(String channelCode, String startTime, String endTime, String streamMode);
    String getPasswordFreeLoginURL();
    String getAccessToken();
    String getNewAccessToken();
    String selectEventSubscriptions();
    String eventSubscriptions(Map param);
    String deleteEventSubscriptions(Map param);
    String picAddrTrans(List<String> addrList);
    String getChannelListWithDevice();
//    List<Map<String,Object>> getLiveStreamUrl(Map param);
//    List<Map<String,Object>> getLiveStreamUrlApp(Map param);


//    String getLiveStreamUrlOfTheMonitor(String channel_code, String stream_type,String stream_mode, String keep_alive, String visit_ip) throws JsonProcessingException;
//    List<Map<String,Object>> getLiveStreamUrlReplay(Map param);
    String getPlayRecordUrl(String channel_code, String event_time, String event_id);
    String getIndexAndName();
    String addDVR(Map param);
    String getVideoDiagnosisResults(String channel_name, String start_time, Integer page_num, Integer page_size);

    String getVideoDiagnosisResults2( String start_time, String end_time, Integer page_num, Integer page_size);
    String getInstalledAlgos();
    String getVideoAnalysisTasks();

    String countOnlineRate(String pageSize, String pageNum);

    String countComplianceRatio(String pageSize, String pageNum, String queryDate);

    String getLastVideoDiagnosisResult(Map param);

    /**
     * 添加方案
     */
    String addVideoDiagnosisScheme(Map param);
    /**
     * 修改方案
     */
    String updateVideoDiagnosisScheme(String schemeId, Map param);

    /**
     * 分页查询方案列表
     */
    String selectVideoDiagnosisSchemeList(String name, Integer page_num, Integer page_size);

    String selectVideoDiagnosisScheme(String schemeId);

    String deleteVideoDiagnosisSchemes(String schemeIds);

    String addVideoDiagnosisPlan(Map param);

    String updateVideoDiagnosisPlan(String planId, Map param);

    String selectVideoDiagnosisPlanList(String name, Integer page_num, Integer page_size);

    String selectVideoDiagnosisPlan(String planId);

    String deleteVideoDiagnosisPlans(String planIds);

    String updatePlanStatus(String ids, Integer status);

}
